import { BASE_PRE } from "../utils/base.js";

const template = {};

//获取formid 获取表单配置
template.config = {
  url: BASE_PRE + "/forms/builder//get/config",
  method: "get", 
};

//获取表单对应的数据表分页结果
template.pages = {
  url: BASE_PRE + "/forms/builder/pages",
  method: "post",
  headers: { "Content-Type": 'application/json'},
  loadingPreset: {
    background: "rgba(0,0,0,0.3)",
  },
};

//表单对应的数据保存
template.save = {
  url: BASE_PRE + "/forms/builder/save",
  headers: { "Content-Type": 'application/json'},
  method: "post", 
};


//表单对应的数据删除
template.del = {
  url: BASE_PRE + "/forms/builder/del",
  method: "get" 
};

export default template;
